package com.medical.admin.cost.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medical.admin.cost.common.dto.TreatmentInfo;
import com.medical.admin.cost.entity.Treatment;

public interface TreatmentMapper extends BaseMapper<Treatment> {
    TreatmentInfo selectTreatmentInfo(Long indentId);

    default Treatment selectByIndentId(Long indentId) {
        QueryWrapper<Treatment> qw = new QueryWrapper<>();
        qw.eq("indent_id", indentId);
        return this.selectOne(qw);
    }
}